<?=view("home.header")?>
<?=view("home.nav")?>
<div class="content-wrapper">
    <div class="container">
        <div class="row pad-botm">
            <div class="col-md-12">
                <h4 class="header-line">奖金明细</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="col-md-12" style="margin-bottom: 15px;">
                <form class="form form-inline">
                    从<input name="starttime" type="date" value="<?=$request->input('starttime')?>" class="form-control" placeholder="<?=date("Y-m-d H:i:s")?>">至<input name="endtime" type="date" value="<?=$request->input('endtime')?>" class="form-control"  placeholder="<?=date("Y-m-d H:i:s")?>"><button class="btn btn-info">查找</button>
                </form>
                </div>
                <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
                    <thead>
                        <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column ascending" style="width: 189px;">会员编号</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 150px;">真实姓名</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">推广津贴</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">部门津贴</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">互助津贴</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">管理津贴</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">报单奖</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">扣税</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">重复消费</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">实发奖金</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">结算日期</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">状态</th>
                        </tr>
                    <tbody>
                        <?php 
                            if ($mlogs && count($mlogs) > 0):
                                foreach ($mlogs as $ml):
                        ?>
                        <tr class="gradeA odd">
                            <td class="sorting_1"><?=$ml->Number?></td>
                            <td class=" "><?=$user->Mu_Name?></td>
                            <td class=" "><?=$ml->FenHong?></td>
                            <td class=" "><?=$ml->Recommend?></td>
                            <td class=" "><?=$ml->Touch?></td>
                            <td class=" "><?=$ml->Agent?></td>
                            <td class=" "><?=$ml->Manage?></td>
                            <td class=" "><?=$ml->Point?></td>
                            <td class=" "><?=$ml->TradeMoney?></td>
                            <td class=" "><?=$ml->getSf()?></td>
                            <td class=" "><?=$ml->CreateTime?></td>
                            <td class=" "><?=$ml->fstat()?></td>
                        </tr>
                        <?php
                                endforeach;
                            endif;
                        ?>
                    </tbody>
                </table>
                <?=$mlogs->render()?>
            </div>
        </div>
    </div>
</div>
<?=view("home.footer")?>
